async function copyToClipboard(text: any) {
    try {
        await navigator.clipboard.writeText(text)
        console.log('内容已复制到剪贴板')
    } catch (err) {
        console.error('复制到剪贴板失败', err)
    }
}

export { copyToClipboard } 